<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">  
	
	<ui:param name="documentViewBean" value="#{commonContentViewBean}" />
	<h:form id="#{documentViewBean.id}_form">
    <div style="width:100%;height:90%;overflow:auto;">
	    <ui:include src="#{documentViewBean.src}"/>
	</div>
	
	<div style="width:100%;height:10%;overflow:hidden; text-align:center;"> 
		
		<p:commandButton actionListener="#{caseWritction.chooseEmp}" title="提交"
						update="#{documentViewBean.id}_form:#{documentViewBean.id}_cru_main"
						oncomplete="#{documentViewBean.id}_personDialog.show();"
						image="./img/icons/add.png" value="提交" style="margin:5px;">
						<h:inputHidden value="#{documentViewBean.id}" />
			</p:commandButton>
			
			<p:commandButton actionListener="#{caseWritction.save}" title="保存"
						image="./img/icons/add.png" value="保存" style="margin:5px;">
						<h:inputHidden value="#{documentViewBean.id}" />
			</p:commandButton>
					<p:commandButton title="关闭"  type="button" onclick="#{documentViewBean.id}_dialog.hide();" image="./img/icons/cancel.png"
			value="关闭" style="margin:5px;" />
			
			<p:dialog  header="" resizable="false" height="300" widgetVar="#{documentViewBean.id}_personDialog" width="450" >
			<p:fieldset id="#{documentViewBean.id}_fieldset" legend="人员选择"
				toggleable="true" toggleSpeed="500"
				style="text-align: center;"> 
                   <h:panelGroup id="#{documentViewBean.id}_cru_main" layout="block" style="width:100%;">
				<ul id="#{documentViewBean.id}_cru_main" class="portal-dataview-ul">
					<!-- 当前组织机构的用户集 -->
					<ui:repeat value="#{documentViewBean.roleUsers}" var="node">
						<li id="#{node.data.useruuid}"
							style="width:100px;height:100px;cursor:pointer;" 
							onmouseover="jQuery(this).addClass('portal-dataview-li-hover')"
							onmouseout="jQuery(this).removeClass('portal-dataview-li-hover')"
							onclick="SinoPortal.PageView.dataView.click('#{documentViewBean.id}_cru_main',this)"
							class="portal-dataview-li">
							<p:graphicImage value="/img/component/system/user_64.png" style="margin:5px;width:64px;height:64px;" />
							<br />
							<h:outputText value="#{node.data.userrealname}" />
						</li>
					</ui:repeat>
				</ul>
			</h:panelGroup>
			</p:fieldset>
			<p:remoteCommand name="#{documentViewBean.id}_submit" actionListener="#{caseWritction.submit}">
			</p:remoteCommand>
			 <p:commandButton value="确 定" process="#{documentViewBean.id}_fieldset" onclick="V3.Org.chooseUser('#{documentViewBean.id}')" oncomplete="#{documentViewBean.id}_dialog.hide()"/>  
            </p:dialog>  
	</div>
	</h:form>
</ui:composition>